package com.glx.learn_spring.learn_spring_03_bean_instance.factory;

import com.glx.learn_spring.learn_spring_03_bean_instance.dao.IUserDao;
import com.glx.learn_spring.learn_spring_03_bean_instance.dao.impl.UserDaoImpl;
import org.springframework.beans.factory.FactoryBean;

/**
 * @author haoli
 * @create 2022/11/30 13:13
 */
public class UserDaoFactoryBean implements FactoryBean<IUserDao> {
    @Override
    public IUserDao getObject() throws Exception {
        return new UserDaoImpl();
    }

    @Override
    public Class<?> getObjectType() {
        return IUserDao.class;
    }
}
